﻿using System;

namespace QDT.Core.Members
{
    public class UserBank : Entity
    {
        public int UserId { set; get; }
        public int BankId { set; get; }
        public string BankCard { set; get; }
        public string BankZone { set; get; }
        public DateTime CreateTime { set; get; }
        public int RegionLv1 { set; get; }
        public int RegionLv2 { set; get; }
        public int RegionLv3 { set; get; }
        public int RegionLv4 { set; get; }
        public bool IsDefault { set; get; }
        public bool IsEffect { set; get; }

        public UserBank()
        {
            CreateTime = DateTime.Now;
            IsDefault = false;
            IsEffect = true;
        }

        public UserBank(int userId, int bankId, string bankCard, string bankZone, int regionLv1, int regionLv2, int regionLv3, int regionLv4) : this()
        {
            UserId = userId;
            BankId = bankId;
            BankCard = bankCard;
            BankZone = bankZone;
            RegionLv1 = regionLv1;
            RegionLv2 = regionLv2;
            RegionLv3 = regionLv3;
            RegionLv4 = regionLv4;
        }

    }
}
